#include "korlapadmin.h"

#ifdef __QT5_TARGET

#include <QtWidgets/QApplication>
#include <QtWidgets/QMessageBox>

#else

#include <QtGui/QApplication>
#include <QMessageBox>

#endif

#include "Exception.h"

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	QMessageBox m;
	//try
	//{
	KorlapAdmin w(NULL,Qt::Window);
		w.show();
	//}
	/*
	catch(int i)
	{
		m.setText("An unexpected error occoured");
		m.exec();
		//w.deleteAll();
		return -1;
	}
	catch(Exception e)
	{
		m.setText(e.getMessage());
		m.exec();
		return e.getErrorCode();
	}
*/
	return a.exec();
}
